<template>
  <div>
    <button @click="shuaiqians">练习父传子，传方法，自定义方法</button>
  </div>
</template>

<script>
export default {
  props: {
    shuaiqian: {
      type: Function,
      default: () => {}
    }
  },
  methods: {
    handleMoney() {
      this.$emit('update:money', this.money - 10)
    },
    handleAge() {
      this.$emit('update:age', this.age + 10)
    },
    shuaiqians() {
      this.shuaiqian(1, 2)
    }
  }
}
</script>

<style>

</style>
